package com.vdf.sisconsolid.persistencemodule.dao;

import java.util.ArrayList;
import java.util.List;

import com.vdf.sisconsolid.persistencemodule.dto.KeyValueBean;
import com.vdf.sisconsolid.util.CacheSC;

public class PersonDao extends BaseDao {

	public List<KeyValueBean> getStatusCivilList() {
		List<KeyValueBean> civilStatusBeanList = new ArrayList<KeyValueBean>();
		for (Byte keyCS : CacheSC.getCivilStatus().keySet()) {
			KeyValueBean csBean = new KeyValueBean();
			csBean.setKey(keyCS.longValue());
			csBean.setValue(CacheSC.getCivilStatus().get(keyCS));
			civilStatusBeanList.add(csBean);
		}
		return civilStatusBeanList;
	}
	
}
